import serves from './axios'
import store from '@/store/index'

// 虚拟仿真

// 获取参与虚拟仿真行业列表
export function getJoinIndustryList() {
    return serves({
        url: '/admin/getJoinIndustryList',
        method: 'post',
        data: {
            token: store.state.token
        }
    })
}

// 获取参与虚拟仿真行业详情
export function getJoinIndustryInfo(id) {
    return serves({
        url: '/admin/getJoinIndustryInfo',
        method: 'post',
        data: {
            token: store.state.token,
            id
        }
    })
}

// 新增参与虚拟仿真行业
export function addJoinIndustry(data) {
    return serves({
        url: '/admin/addJoinIndustry',
        method: 'post',
        data: {
            token: store.state.token,
            ...data
        }
    })
}

// 删除参与虚拟仿真行业
export function delJoinIndustry(id) {
    return serves({
        url: '/admin/delJoinIndustry',
        method: 'post',
        data: {
            token: store.state.token,
            id
        }
    })
}

// 修改参与虚拟仿真行业
export function updateJoinIndustry(data) {
    return serves({
        url: '/admin/updateJoinIndustry',
        method: 'post',
        data: {
            token: store.state.token,
            ...data
        }
    })
}